Passed
Push — develop ( 0d94ee...f7f5fa )
by Bjarn
01:50 queued 10s
created

os.ts ➔ client   A

Complexity

Conditions 2

Size

Total Lines 7
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 7
c 0
b 0
f 0
rs 10
cc 2
1
import Client from '../client/client'
2
import Darwin from '../client/os/darwin'
3
4
function client(): Client {
5
    switch (process.platform) {
6
    case 'darwin':
7
        return new Darwin
8
    default:
9
        return new Darwin // TODO: Catch unsupported OS. Currently just returning MacOS stuff as we're just creating a POC.
10
    }
11
}
12
13
export {
14
    client
15
}